﻿<%@ Page Language="C#" Title="Strategic Asset Management Las Vegas: RehabStatusCodes" MasterPageFile="~/Site2.Master" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="LenderClearingHouse.Admin" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphPageHeader" runat="server">
  RehabStatusCodes
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMain" runat="server">
    
    <asp:SqlDataSource ID="sqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:SQLConnection %>"
        SelectCommand="getRehabStatusCodes" SelectCommandType="StoredProcedure" DeleteCommand="deleteRehabStatusCodes"
        DeleteCommandType="StoredProcedure">
        <DeleteParameters>
            <asp:Parameter Name="RehabStatusCodesId" Type="Int32" />
        </DeleteParameters>
    </asp:SqlDataSource>
    <asp:HiddenField ID="hfUserId" runat="server" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="gridRehabStatusCodes">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="gridRehabStatusCodes" UpdatePanelHeight="" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <div class="panel7">
      RehabStatusCodes
    </div>
    <telerik:RadGrid ID="gridRehabStatusCodes" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
        AllowSorting="True" AutoGenerateColumns="False" DataSourceID="sqlDataSource"
        GridLines="None" AllowAutomaticDeletes="True" ShowStatusBar="True" OnInsertCommand="gridRehabStatusCodes_InsertCommand"
        OnUpdateCommand="gridRehabStatusCodes_UpdateCommand" AllowMultiRowEdit="False" OnDeleteCommand="gridRehabStatusCodes_DeleteCommand">
        <ClientSettings>
            <Scrolling UseStaticHeaders="True" />
        </ClientSettings>
        <MasterTableView DataSourceID="sqlDataSource" DataKeyNames="RehabStatusCodesId" CommandItemDisplay="Top">
            <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmText="Delete this rehab status code?"
                    ConfirmTitle="Delete" UniqueName="column">
                </telerik:GridButtonColumn>
                <telerik:GridEditCommandColumn ButtonType="ImageButton">
                </telerik:GridEditCommandColumn>
                <telerik:GridBoundColumn DataField="Code" HeaderText="Code" SortExpression="Code" UniqueName="Code"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Description" HeaderText="Description" SortExpression="Description" UniqueName="Description"></telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings EditFormType="WebUserControl" UserControlName="EditRehabStatusCodesControl.ascx">
                <EditColumn UniqueName="EditCommandColumn1">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
    </telerik:RadGrid>
</asp:Content>
